package com.dongdongshop.controller;

import com.dongdongshop.service.PhoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MessagePhone {

    @Autowired
    private PhoneService phoneService;

    @RequestMapping("sendPhoneMessage")
    @ResponseBody
    public String sendPhoneMessage(String phoneNum){
        phoneService.sendPhoneMessage(phoneNum);
        return "OK";
    }
}
